<%@ page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<script type='text/javascript' src='${ctx}/dwr/interface/NotifyService.js'></script>

<%
    List<Menu> usermenus = orgmenuService.getAllMenuByOrgSetting();
    HashMap menuparams = new HashMap();
    menuparams.put("{currentuser}", Env.getRemoteUser().getCurrentuserid());
    menuparams.put("{currentorg}", Env.getRemoteUser().getOrgid());
    menuparams.put("{currentdate}", DateUtil.getCurrentDate());
    menuparams.put("{currenttime}", DateUtil.getCurrentTime());
    menuparams.put("{currentyear}", DateUtil.getCurrentYear());
    int i = 0;
    int posi=0;
    Human human=humanService.getFree(Env.getRemoteUser().getCurrentuserid());
    String photo = StringUtil.null2String(human.getPhoto());
    String photoimg = request.getContextPath() + "/images/base/face.gif";
    if (!StringUtil.isEmpty(photo))
        photoimg = request.getContextPath() + "/filedownload.do?attachid=" + photo + "&download=1&nIndex=1";

%>
<div id="leftmenu">
<table id="contentcontainer" cellpadding="0" cellspacing="0">
<tr height="*">

<td width="*">
<table id="content" cellpadding="0" cellspacing="0">
<tr>
<td width="126px" id="leftBlockTd">

<!--放置左侧菜单区-->
<div id="leftmenucontainer" style="width:100%;overflow:hidden;">
<div id="leftmenucontainer-top" style="position:relative;left:-1;">
    <div class="leftBlockTopBgLeft"></div>
    <div id="leftBlockTopBgCenter"></div>
    <div class="leftBlockTopBgRight"></div>
</div>
<div style="padding-left:10px;margin-top:5px;">
<table width="100%" cellpadding="0px" cellspacing="0px">
<tr>
    <td>
        <table width="100%" cellpadding="0px" cellspacing="0px">
            <tr>
                <td style="position:relative;">
                    <div id="leftmenu-top" style="">
                        <div class="leftBlockHrmInfoLeft"><%if (!StringUtil.isEmpty(photo)){%><img src='<%=photoimg%>'  style="position:absolute;top:14px;left:11px;width:43px;heigth:43px;"></img><%}%></div>
                        <div id="leftBlockHrmInfoCenter" class="leftBlockHrmInfoCenter"></div>
                        <div class="leftBlockHrmInfoRight"></div>
                    </div>
                    <div id="leftBlock_HrmDiv">


                        <div style="position:relative;height:100%">

                            <!-- 更换皮肤设置 Start -->
                            <div style="position:absolute;left:63px;top:5px;font-size:12px;height:16px;right:25px;">
       <span style="float:right;margin-right:2px;">

           <img src="/images/face/win7-s/skinSetting.png" title="个人设置" style="height:16px;widht:16px;display:block;"
                style="cursor:pointer;" onclick="javascript:onUrl('${ctx}/hrm/usersetting.jsp','个人设置','tab28');" id="themeQh"/>

       </span>
                            </div>
                            <!-- 更换皮肤设置 End -->

                            <div style="position:absolute;left:63px;top:16px;font-size:12px;color:#006699;font-weight:bold"
                                 class="hrminfo_fontcolor">
                                <%=username%>
                            </div>


                            <div id="leftBlockHrmDep"
                                 style="position:absolute;left:63px;top:37px;font-size:11px;color:#666;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:110px;"
                                 ><%=StringUtil.null2String(orgService.get(loginUser.getOrgid()).getObjname())%></div>

                            <div style="position:absolute;width:170px;height:18px;left:8px;top:66px;">
                                <table width="100%" cellpadding="0px" cellspacing="0px" id="tblHrmToolbr" align="left">
                                    <tr>

                                        <td width="24px"><a href="javascript:onUrl('${ctx}/form/formprocess.jsp?processid=<%=loginUser.getId()%>','我的卡片','tab23')" title='我的卡片'><span
                                                style="cursor:pointer;height:16px;width:16px;display:block;overflow:hidden;background:url(/images/face/win7-s/card.png) no-repeat;"></span></a>
                                        </td>
                                        <td width="24px"><a href="javascript:onUrl('${ctx}/security/user/usermodify.jsp?objtype=1&objid=<%=loginUser.getId()%>','修改密码','tab25')"
                                                            title='修改密码' ><span
                                                style="cursor:pointer;height:16px;width:16px;display:block;overflow:hidden;background:url(/images/face/win7-s/psw.png) no-repeat;"></span></a>
                                        </td>


                                        <td width="*" align="left">

                                            &nbsp;

                                        </td>
                                        <td width="3px" align="right">
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>


                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>

    </td>
</tr>
<tr>
<td style="position:relative;">
<div id="leftmenu-bottom"></div>
<!--放置左侧菜单区-->
<div style="position:relative;top:0px;">

<script type="text/javascript" src="/js/drilldownmenu.js"></script>
<script type="text/javascript" src="/js/jquery.scrollTo.js"></script>


<div class="leftMenuTopNavDiv">
    <div id="drillcrumb"></div>
</div>
<div id="leftMenu" style="height:27px;overflow: hidden;z-index:20px;position:relative;">
<div style="width:186px;height:27px;position:absolute;z-index:1000;font-size:11px;font-family:'微软雅黑', 'verdana';filter: alpha(opacity=0);"
     id="divFloatLeftmenu">
    <div class="leftMenuItemNavLeft"></div>
    <div class="leftMenuItemNavCenter"></div>
    <div class="leftMenuItemNavRight"></div>
</div>
<div id="drillmenu" class="drillmenu">
<%
    for (Menu menu : usermenus) {
        if (StringUtil.isEmpty(menu.getPid())) {//1 level
            if (menu.getObjorder() != null && menu.getObjorder() < -1) {
                continue;
            }
            String menuurl = menu.getUrl();
            if (!StringUtil.isEmpty(menuurl)) {
                Iterator paravaluehmkeyit = menuparams.keySet().iterator();
                while (paravaluehmkeyit.hasNext()) {
                    String paravaluehmkey = (String) paravaluehmkeyit.next();
                    menuurl = StringUtil.replaceString(menuurl, paravaluehmkey, (String) menuparams.get(paravaluehmkey));
                }
                menuurl = "javascript:onUrl('" + menuurl + "','" + menu.getObjname() + "','tab" + menu.getId() + "')";
            } else
                menuurl = "#";
%>
<%if (i == 0) {%>
<ul><%}%>
    <li>
        <a id="item_<%=menu.getId()%>" class='lfMenuItem' _bgPosition='0 <%=-(i%4)*28%>' href="<%=menuurl%>">

            <div class='leftMenuItemLeft' style='background-position:0 <%=-(i%4)*28%>;'></div>
            <div class='leftMenuItemCenter' style=''><%=menu.getObjname()%>
            </div>
            <div class='leftMenuItemRight' style=''></div>
            <div style='width:4px;'></div>
        </a>
        <%
            int j = 0;
            for (Menu submenu2 : usermenus) {
                if (!StringUtil.isEmpty(submenu2.getPid()) && submenu2.getPid().equals(menu.getId())) {//2 level
                    if (submenu2.getObjorder() != null && submenu2.getObjorder() < -1) {
                                    continue;
                                }
                    String menuurl2 = submenu2.getUrl();
                    if (!StringUtil.isEmpty(menuurl2)) {
                        Iterator paravaluehmkeyit = menuparams.keySet().iterator();
                        while (paravaluehmkeyit.hasNext()) {
                            String paravaluehmkey = (String) paravaluehmkeyit.next();
                            menuurl2 = StringUtil.replaceString(menuurl2, paravaluehmkey, (String) menuparams.get(paravaluehmkey));
                        }
                        menuurl2 = "javascript:onUrl('" + menuurl2 + "','" + submenu2.getObjname() + "','tab" + submenu2.getId() + "')";
                    } else
                        menuurl2 = "#";
        %>
        <%if (j == 0) {%>
        <ul id="ul_<%=menu.getId()%>"><%}%>
            <li>
                <a id="item_<%=submenu2.getId()%>" class='lfMenuItem' _bgPosition='0 <%=-(j%4)*28%>' href="<%=menuurl2%>">
                    <div class='leftMenuItemLeft' style='background-position:0 <%=-(j%4)*28%>;'></div>
                    <div class='leftMenuItemCenter' style=''><%=submenu2.getObjname()%>
                    </div>
                    <div class='leftMenuItemRight' style=''></div>
                    <div style='width:4px;'></div>
                </a>
                <%
                    int k = 0;
                    for (Menu submenu3 : usermenus) {
                        if (!StringUtil.isEmpty(submenu3.getPid()) && submenu3.getPid().equals(submenu2.getId())) {//3 level
                            if (submenu3.getObjorder() != null && submenu3.getObjorder() < -1) {
                                                                continue;
                                                            }
                            String menuurl3 = submenu3.getUrl();
                            if (!StringUtil.isEmpty(menuurl3)) {
                                Iterator paravaluehmkeyit = menuparams.keySet().iterator();
                                while (paravaluehmkeyit.hasNext()) {
                                    String paravaluehmkey = (String) paravaluehmkeyit.next();
                                    menuurl3 = StringUtil.replaceString(menuurl3, paravaluehmkey, (String) menuparams.get(paravaluehmkey));
                                }
                                menuurl3 = "javascript:onUrl('" + menuurl3 + "','" + submenu3.getObjname() + "','tab" + submenu3.getId() + "')";
                            } else
                                menuurl3 = "#";
                %>
                <%if (k == 0) {%>
                <ul id="ul_<%=submenu2.getId()%>"><%}%>
                    <li>
                        <a id="item_<%=submenu3.getId()%>" class='lfMenuItem' _bgPosition='0 <%=-(k%4)*28%>'
                           href="<%=menuurl3%>">
                            <div class='leftMenuItemLeft' style='background-position:0 <%=-(k%4)*28%>;'></div>
                            <div class='leftMenuItemCenter' style=''><%=submenu3.getObjname()%>
                            </div>
                            <div class='leftMenuItemRight' style=''></div>
                            <div style='width:4px;'></div>
                        </a>
                    </li>
                    <%
                                k++;
                            }
                        }
                    %>

                    <%if (k > 0) {%></ul>
                <%}%>

            </li>
            <%
                        j++;
                    }
                }%>

            <%if (j > 0) {%></ul>
        <%}%>
    </li>
    <%
                i++;
            }
        }%>


    <%if (true) {%>
    <authz:authorize ifAllGranted="ROLE_系统管理员">
        <%
            //String orgid = Env.getRemoteUser().getOrgid();
            List<Menu> sysmenus = new ArrayList();
            Menu menu = menuService.get("1");
            sysmenus = menuService.getSubMenuTree("1", "1", "1", sysmenus);
        %>

        <li>
            <a id="item_<%=menu.getId()%>" class='lfMenuItem' _bgPosition='0 <%=-(i%4)*28%>' href="#">

                <div class='leftMenuItemLeft' style='background-position:0 <%=-(i%4)*28%>;'></div>
                <div class='leftMenuItemCenter' style=''><%=menu.getObjname()%>
                </div>
                <div class='leftMenuItemRight' style=''></div>
                <div style='width:4px;'></div>
            </a>
            <%
                int j = 0;
                for (Menu submenu2 : sysmenus) {
                    if (!StringUtil.isEmpty(submenu2.getPid()) && submenu2.getPid().equals(menu.getId())) {//2 level
                        String menuurl2 = submenu2.getUrl();
                        if (!StringUtil.isEmpty(menuurl2)) {
                            Iterator paravaluehmkeyit = menuparams.keySet().iterator();
                            while (paravaluehmkeyit.hasNext()) {
                                String paravaluehmkey = (String) paravaluehmkeyit.next();
                                menuurl2 = StringUtil.replaceString(menuurl2, paravaluehmkey, (String) menuparams.get(paravaluehmkey));
                            }
                            menuurl2 = "javascript:onUrl('" + menuurl2 + "','" + submenu2.getObjname() + "','tab" + submenu2.getId() + "')";
                        } else
                            menuurl2 = "#";
            %>
            <%if (j == 0) {%>
            <ul id="ul_<%=menu.getId()%>"><%}%>
                <li>
                    <a id="item_<%=submenu2.getId()%>" class='lfMenuItem' _bgPosition='0 <%=-(j%4)*28%>' href="<%=menuurl2%>">
                        <div class='leftMenuItemLeft' style='background-position:0 <%=-(j%4)*28%>;'></div>
                        <div class='leftMenuItemCenter' style=''><%=submenu2.getObjname()%>
                        </div>
                        <div class='leftMenuItemRight' style=''></div>
                        <div style='width:4px;'></div>
                    </a>
                    <%
                        int k = 0;
                        for (Menu submenu3 : sysmenus) {
                            if (!StringUtil.isEmpty(submenu3.getPid()) && submenu3.getPid().equals(submenu2.getId())) {//3 level
                                String menuurl3 = submenu3.getUrl();
                                if (!StringUtil.isEmpty(menuurl3)) {
                                    Iterator paravaluehmkeyit = menuparams.keySet().iterator();
                                    while (paravaluehmkeyit.hasNext()) {
                                        String paravaluehmkey = (String) paravaluehmkeyit.next();
                                        menuurl3 = StringUtil.replaceString(menuurl3, paravaluehmkey, (String) menuparams.get(paravaluehmkey));
                                    }
                                    menuurl3 = "javascript:onUrl('" + menuurl3 + "','" + submenu3.getObjname() + "','tab" + submenu3.getId() + "')";
                                } else
                                    menuurl3 = "#";
                    %>
                    <%if (k == 0) {%>
                    <ul id="ul_<%=submenu2.getId()%>"><%}%>
                        <li>
                            <a id="item_<%=submenu3.getId()%>" class='lfMenuItem' _bgPosition='0 <%=-(k%4)*28%>'
                               href="<%=menuurl3%>">
                                <div class='leftMenuItemLeft' style='background-position:0 <%=-(k%4)*28%>;'></div>
                                <div class='leftMenuItemCenter' style=''><%=submenu3.getObjname()%>
                                </div>
                                <div class='leftMenuItemRight' style=''></div>
                                <div style='width:4px;'></div>
                            </a>
                        </li>
                        <%
                                    k++;
                                }
                            }
                        %>

                        <%if (k > 0) {%></ul>
                    <%}%>
                </li>
                <%
                            j++;
                        }
                    }%>

                <%if (j > 0) {%></ul>
            <%
                }
                i++;
            %>
        </li>

    </authz:authorize>
    <%}%>
    <%if (i > 0) {%>
</ul>
<%}%>

</div>
</div>


<div class="navclass leftMenuBottomNavDiv">
    <table align="center" height="27px" cellpadding="0px" cellspacing="0px" width="100%" class="leftMenuBottomNavTbl">
        <tr>
            <td align="center" id="navTd">
            <td>
        </tr>
    </table>
</div>


<script type="text/javascript">

/**
 * 左侧菜单最多显示菜单项数目
 */
var leftMenuMaxItem = 7;
/**
 * 菜单滚动速度
 */
var leftMenuScrollSpeed = 200;

/**
 * 菜单每页显示的高度
 */
var leftMenuScrollHeight = leftMenuMaxItem * 28;
//---------------------------------------------------------------
//左侧菜单最多显示菜单高度,由系统自动算出
var LEFT_MENU_MAX_HEIGHT = leftMenuMaxItem * 28;
//左侧菜单显示的菜单项黑度
var LEFT_MENU_ITEM_HEIGHT = 28;
//菜单宽度
var leftMenuItemWidth = 175;
//---------------------------------------------------------------

function setLeftMenuItemFontLt() {
    jQuery(".drillmenu li a").css("padding", "5px 5px 4px 20px");
    jQuery("#divFloatLeftmenuContext").css("padding", "5px 5px 4px 20px");

}

function setLeftMenuHeight(size) {
    jQuery(".drillmenu").css("width", size + "px");//    175

    if ("true" != "true") {
        jQuery("#drillcrumb").css("width", size - 9 + "px"); // 170
    } else {
        jQuery("#drillcrumb").css("width", size + 3 + "px"); // 170
    }

    jQuery(".leftMenuTopNavDiv").css("width", size + 3 + "px"); // 170
    jQuery(".navclass").css("width", size + 3 + "px");   //180
    jQuery("#drillcrumbTbl").css("width", size + 16 + "px"); //191
    jQuery("#divFloatLeftmenu").css("width", size + 16 + "px");  //186
    jQuery("#divFloatLeftmenuContext").css("width", size + 3 + "px");  //186

    if (size < 150) {
        setLeftMenuItemFontLt();
    }
}

//-------------------------------------
// 20110526 自适应宽度 start
//-------------------------------------
function setLeftMenuItemANavHeight(size) {
    jQuery(".leftMenuItemRight").css("left", size - 5 + "px");
    jQuery(".leftMenuItemCenter").css("width", size - 16 + "px");

    jQuery(".leftMenuItemNavRight").css("left", size + 1 + "px");
    jQuery(".leftMenuItemNavCenter").css("width", size - 10 + "px");
}

function leftMenuInit() {

    var clientScreenHeight = window.screen.height;
    var clientScreenWidth = window.screen.width;
    if (clientScreenWidth < 1280) {
        clientScreenWidth = 1280;
    }
    var tpLeftMenuMaxHeight = Math.round(clientScreenHeight / 2.8);
    var tpLeftMenuMaxWidth = Math.round(clientScreenWidth / 8); //8
    if (tpLeftMenuMaxWidth < 180) tpLeftMenuMaxWidth = 180;

    leftMenuMaxItem = Math.round(tpLeftMenuMaxHeight / 28);
    leftMenuItemWidth = tpLeftMenuMaxWidth;

    setLeftMenuHeight(leftMenuItemWidth);
    setLeftMenuItemANavHeight(leftMenuItemWidth);


    leftMenuScrollSpeed = 200;
    leftMenuScrollHeight = leftMenuMaxItem * 28;
    LEFT_MENU_MAX_HEIGHT = leftMenuMaxItem * 28;
}

leftMenuInit();
function clickHome(){
    cp.set('selectedul',null);
}
jQuery(document).ready(function (event) {
    jQuery("#divFloatLeftmenu").css("filter", "");
    jQuery("#divFloatLeftmenu").hide();
    //设置左侧菜单高度
    jQuery("#leftMenu").height(LEFT_MENU_MAX_HEIGHT);
    //左侧菜单导航
    var selectedul=cp.get('selectedul');
    var myLftMenu = new drilldownmenu(
            {menuid:'drillmenu', menuheight:'auto', breadcrumbid:'drillcrumb', persist:{enable:false, overrideselectedul:false}, speed:0}
    );
    jQuery('#crumbhome').bind('click',clickHome);
    jQuery(".arrowclass").css("position", "").css("position", "absolute");
    //--------------------------------------------------------
    // 绑定事件
    //--------------------------------------------------------
    jQuery(".drillmenu ul li a").bind("click", function () {
        currMObj = this;
        currUl=$(this).parent().parent().attr('id');
        if(currUl!=null&&typeof(currUl)=='string'&&currUl!=''){
            cp.set('selectedul',currUl)
        }
        //移动导航条至当前所选菜单
        navMoveIfrmClk(this)
        if (!selFlg) {
            selFlg = true;
            jQuery("#leftMenu").scrollTo({top:'0px', left:+'0px'}, 0);
        } else {
            jQuery("#divFloatLeftmenu").show();
        }

    });
    //-------------------------------------------------------
    lMNavBindClick();
    syncLMHeight();
    //当前导航所在菜单有子菜单时，点击导航，触发其菜单本身click事件
    jQuery("#divFloatLeftmenu").bind("click", function (event) {
        if (currMObj != null && currMObj != undefined) {
            if (jQuery(currMObj).children('ul')) {

                jQuery(currMObj).click();
            }

        } else {
            var first = jQuery("#drillmenu ul li a").get(0);
            if (first != null && first != undefined) {

                jQuery(first).click();
            }
        }
    });
    if (jQuery("#mainFrame").attr("src") == "") {
        lMnavToFirstNav();
    }
    //
});

//---------------------------------------------------------------
// 以下变量为菜单的相关设置
// currSubMParent      :  当前子菜单所属父菜单
// selFlg              :  目前的位置：是否在父菜单是否在父亲那里
// parentMCntLinked    :  保存层级菜单子菜单的个数，用于计算菜单高度.
// parentMObjLinked    :  保存层级菜单,确保点击url返回时,有正确的动作
// parentMLinkedIndex  :  保存层级菜单当前位置
// currMObj            :  当前点击菜单项
var currSubMParent;
var selFlg = true;
var parentMCntLinked = new Array();
var parentMObjLinked = new Array();
var parentMLinkedIndex = 0;
var currMObj = null;
// END
//---------------------------------------------------------------

//---------------------------------------------------------------
// 菜单隐藏时，保持最后点击的菜单
//---------------------------------------------------------------
var recentlyClickTopMenuObj = null;
var lyClickTopmenuStatictics = 0;
/**
 * 动态改变左侧菜单项
 * 点击顶部菜单时，调用此函数
 * @param ele 当前点击的一级(顶级)菜单
 */
function dymlftenu(ele, isOpenFirstMenu) {
    recentlyClickTopMenuObj = ele;
    lyClickTopmenuStatictics++;
    var paramValue = "";
    var levelid = jQuery(ele).attr("levelid");

    if (levelid != undefined && levelid != null && levelid != "") {
        paramValue = levelid;
    } else {
        paramValue = "-9999";
    }

    var reg = new RegExp("####", "g");
    if (menuMap.get(paramValue) != undefined && menuMap.get(paramValue) != null && menuMap.get(paramValue) != "" && paramValue != "111") {
        //清空滚动导航项
        jQuery("#navTd").html("");
        currMObj = null;
        var leftMenuHtml = menuMap.get(paramValue).replace(reg, "\"");
        jQuery(leftMenuHtml).hide();
        jQuery("#drillmenu").html(leftMenuHtml);
        //-------------------------------------
        // 20110526 自适应宽度 start
        //-------------------------------------
        jQuery(".leftMenuItemRight").css("left", leftMenuItemWidth - 5);
        jQuery(".leftMenuItemCenter").css("width", leftMenuItemWidth - 11 - 5);
        if (leftMenuItemWidth < 150) {
            setLeftMenuItemFontLt();
        }
        //-------------------------------------
        // 20110526 自适应宽度 end
        //-------------------------------------

        jQuery("#leftMenu").scrollTo({top:'0px', left:+'0px'}, 0);

        //第一个菜单项
        var lfirst = jQuery("#drillmenu ul li a").get(0);
        var isPortal = false;
        if (paramValue == "-9999") {
            isPortal = true;
        }
        //重新绑定菜单项onclick事件
        lMNavEventRebind(jQuery(ele).children(".slideItemText").html(), isPortal);
        //同步菜单高度
        syncLMHeight();
        //左侧菜单onclick事件
        lMNavBindClick();
        jQuery(leftMenuHtml).show();
        //选中第一个菜单项
        lMnavToFirstNav(isOpenFirstMenu);


    }
}

/**
 * 进入子菜单或者回到父菜单时的处理
 * @param dz 回到父菜单时:show
 *           进入子菜单时:hide
 * @param parent 进入子菜单前，选中的菜单项
 * @param liparent 当前点击的菜单项
 * @return null
 */
function callback(dz, parent, liparent) {
    //清空滚动导航项
    try {
        jQuery("#navTd").html("");
        //进入子菜单
        if (dz == "hide") {
            jQuery(".arrowclass").css("position", "").css("position", "absolute");
            var lfurlHtml = jQuery("#drillcrumb").html();
            if (lfurlHtml != null && lfurlHtml != undefined && lfurlHtml != "") {
                if (jQuery(liparent).children('a') != undefined
                        && jQuery(liparent).children('a').attr("href") != undefined
                        && jQuery(liparent).children('a').attr("href") != ""
                        && jQuery(liparent).children('a').attr("href") != "#"
                        && jQuery(liparent).children('a').attr("href") != "javascript:void(0)"
                        && jQuery(liparent).children('a').attr("href") != "javascript:void(0);") {
                    var lfurlnhtml = lfurlHtml.substring(0, lfurlHtml.lastIndexOf(">") + 1)
                            + "<a href='" + jQuery(liparent).children('a').attr("href") + "'  onclick=\"javascript:window.open(this.href,'mainFrame');return false;\">"
                            + lfurlHtml.substr(lfurlHtml.lastIndexOf(">") + 1)
                            + "</a>";
                    jQuery("#drillcrumb").html(lfurlnhtml);
                }
            }

            //隐藏导航
            jQuery("#divFloatLeftmenu").hide();

            //更新位置状态
            selFlg = false;
            //保存当前菜单的子菜单个数
            parentMCntLinked[parentMLinkedIndex] = jQuery(liparent).parent().children("li").length;
            //保存当前菜单，形成菜单链
            parentMObjLinked[parentMLinkedIndex] = parent;
            //保持当前选中父菜单
            currSubMParent = parent;

            parentMLinkedIndex++;
            var currChildCnt = jQuery(liparent).children("ul").children("li").length;
            //使滚动条处在顶部位置
            jQuery("#leftMenu").scrollTo({top:'0px', left:+'0px'}, 0);
            if (currChildCnt <= leftMenuMaxItem) {
                jQuery("#drillmenu").height(currChildCnt * LEFT_MENU_ITEM_HEIGHT);
                jQuery("#leftMenu").height(currChildCnt * LEFT_MENU_ITEM_HEIGHT);
                //jQuery("#leftMenu").parent().height(currChildCnt * LEFT_MENU_ITEM_HEIGHT);
                setMainElementHeight(currChildCnt * LEFT_MENU_ITEM_HEIGHT);
                //jQuery(".navclass").hide();
            } else {
                jQuery("#drillmenu").height(currChildCnt * LEFT_MENU_ITEM_HEIGHT);
                jQuery("#leftMenu").height(LEFT_MENU_MAX_HEIGHT);
                //  jQuery("#leftMenu").parent().height(LEFT_MENU_MAX_HEIGHT);
                setMainElementHeight(LEFT_MENU_MAX_HEIGHT);
                //jQuery(".navclass").show();
            }
            lMNavBindClick();
            //回到父菜单
        } else {
            //当前层级与点击层级的差。
            var lessUrl = 1;
            //更新状态
            selFlg = true;
            //获得当前点击的url菜单的层级
            var urlCnt = jQuery("#drillcrumb").children("a").length;
            //取得该层级下子菜单的个数
            var plicnt = parentMCntLinked[urlCnt];
            //取得该层级本身
            currSubMParent = parentMObjLinked[urlCnt];

            lessUrl = parentMLinkedIndex - urlCnt;
            //更新当前菜单层级index
            parentMLinkedIndex = urlCnt;
            //更新当前导航所在菜单object
            currMObj = currSubMParent;


            if (plicnt <= leftMenuMaxItem) {
                jQuery("#drillmenu").height(plicnt * LEFT_MENU_ITEM_HEIGHT);
                jQuery("#leftMenu").height(plicnt * LEFT_MENU_ITEM_HEIGHT);
                //jQuery("#leftMenu").parent().height(plicnt * LEFT_MENU_ITEM_HEIGHT);
                //jQuery(".navclass").hide();
                setMainElementHeight(plicnt * LEFT_MENU_ITEM_HEIGHT);
                jQuery("#lprev").hide();
                jQuery("#rprev").hide();
            } else {
                jQuery("#drillmenu").height(plicnt * LEFT_MENU_ITEM_HEIGHT);
                jQuery("#leftMenu").height(LEFT_MENU_MAX_HEIGHT);
                //jQuery("#leftMenu").parent().height(LEFT_MENU_MAX_HEIGHT);
                //jQuery(".navclass").show();
                setMainElementHeight(LEFT_MENU_MAX_HEIGHT);
                jQuery("#lprev").hide();
                jQuery("#rprev").hide();
            }


            //导航回到上次点击的父菜单上
            jQuery("#divFloatLeftmenu").each(function () {
                jQuery.dequeue(this, "fx");
            }).animate({
                        top:jQuery(currSubMParent).offset().top - jQuery("#leftMenu").offset().top + jQuery("#leftMenu").scrollTop(),
                        left:0
                    }, 0, 'backout');
            //取得背景图片position
            var abg = jQuery(jQuery(currSubMParent)[0]).attr("_bgPosition");
            //取得菜单项的多级标志（箭头图片）
            var htmImg = jQuery(jQuery(currSubMParent)[0]).html().substring(0, jQuery(jQuery(currSubMParent)[0]).html().toUpperCase().indexOf("<DIV"));
            //取得菜单项的text
            var htmText = jQuery(jQuery(currSubMParent)[0]).find(".leftMenuItemCenter").text();
            //取得菜单项中用于显示的div
            var htmDivContext = jQuery("#divFloatLeftmenu").html().substring(0, jQuery("#divFloatLeftmenu").html().toUpperCase().lastIndexOf("</DIV>") + 6);
            //根据菜单项的背景图片颜色来设置导航的颜色
            jQuery(".leftMenuItemNavLeft").css("background-position", abg);
            jQuery(".leftMenuItemNavRight").css("background-position", abg);
            jQuery(".leftMenuItemNavCenter").css("background-position", abg).html(htmText);
            jQuery("#divFloatLeftmenu .arrowclass").remove();
            jQuery(htmImg).insertBefore(".leftMenuItemNavCenter");
            //jQuery("#divFloatLeftmenuContext").html(htmImg + htmText);

            //显示导航
            jQuery("#divFloatLeftmenu").show();

            //使选中的菜单项处于可视位置
            var navNumber = 0;
            var currScrollTop = jQuery(currSubMParent).offset().top - jQuery("#leftMenu").offset().top;
            var flag = (currScrollTop / leftMenuScrollHeight + "").indexOf(".");
            if (flag != -1) {
                navNumber = currScrollTop / leftMenuScrollHeight < 1 ? 0 : (parseInt(currScrollTop / leftMenuScrollHeight));
            } else {
                navNumber = currScrollTop / leftMenuScrollHeight < 1 ? 0 : currScrollTop / leftMenuScrollHeight;
            }

            jQuery("#leftMenu").scrollTo({top:navNumber * leftMenuScrollHeight + 'px', left:+'0px'}, leftMenuScrollSpeed);

            if (jQuery(currSubMParent).offset().top - jQuery("#leftMenu").offset().top + jQuery("#leftMenu").height() < jQuery("#drillmenu")[0].scrollHeight) {
                jQuery("#rprev").show();
            }
            if (jQuery(currSubMParent).offset().top - jQuery("#leftMenu").offset().top > 0) {
                jQuery("#lprev").show();
            }
            lMNavBindClick();

            jQuery("#navTd").children('span').css("background", "url(/images/face/win7-s/lm_nav.png) no-repeat");
            jQuery("#navTd").children('span').css("background-position", "center center");
            jQuery("#navTd").children('span').each(function () {
                var navIndex = jQuery(this).attr("navIndex");
                if (navIndex == navNumber) {
                    currentNav = navIndex;
                    jQuery(this).css("background", "url(/images/face/win7-s/" + (parseInt(navNumber) + 1) + ".png) no-repeat center center");
                }
            });

        }
    } catch (e) {
    }

}

function dymLMNav() {
    var navCnt = 0;
    var flag = (jQuery("#leftMenu")[0].scrollHeight / leftMenuScrollHeight + "").indexOf(".");
    if (flag != -1) {
        navCnt = parseInt(jQuery("#leftMenu")[0].scrollHeight / leftMenuScrollHeight);
    } else {
        navCnt = parseInt(jQuery("#leftMenu")[0].scrollHeight / leftMenuScrollHeight) - 1;
    }

    var navSpan = "";
    if (navCnt > 0) {
        navSpan = "<span navIndex=\"0\" style=\"display:inline-block;margin-left:3px;margin-right:3px;margin-top:1px;height:25px;width:25px;cursor:pointer;background:url(/images/face/win7-s/1.png);background-repeat: no-repeat;background-position: center center;\">&nbsp;</span>";
    }
    for (var i = 1; i <= navCnt; i++) {
        navSpan += "<span navIndex=\"" + i + "\" style=\"display:inline-block;margin-left:3px;margin-right:3px;margin-top:1px;height:25px;width:25px;cursor:pointer;background:url(/images/face/win7-s/lm_nav.png);background-repeat: no-repeat;background-position: center center;\">&nbsp;</span>";
    }
    jQuery("#navTd").html(navSpan)

}


var currentNav = 0;
function lMNavBindClick() {
    dymLMNav();
    jQuery("#navTd span").bind("click", function () {
        lMNavClick(jQuery(this));
    });

    jQuery("#navTd span").hover(function () {
        $this = jQuery(this);
        var navIndex = $this.attr("navIndex");
        if (currentNav != navIndex) {
            $this.css("background", "url(/images/face/win7-s/" + (parseInt(navIndex) + 1) + ".png) no-repeat ");
            $this.css("background-position", "center center")
        }

    }, function () {
        $this = jQuery(this);
        var navIndex = $this.attr("navIndex");
        if (currentNav != navIndex) {
            $this.css("background", "url(/images/face/win7-s/lm_nav.png) no-repeat");
            $this.css("background-position", "center center")
        }

    });
}

function lMNavClick($this) {
    var navIndex = $this.attr("navIndex");
    currentNav = navIndex;
    $this.parent().children('span').css("background", "url(/images/face/win7-s/lm_nav.png) no-repeat");
    $this.parent().children('span').css("background-position", "center center")

    $this.css("background", "url(/images/face/win7-s/" + (parseInt(navIndex) + 1) + ".png) no-repeat");
    $this.css("background-position", "center center")
    jQuery("#leftMenu").scrollTo({top:navIndex * leftMenuScrollHeight + 'px', left:+'0px'}, leftMenuScrollSpeed);
}

function lMnavToFirstNav(isOpenFirstMenu) {
    var first = jQuery("#drillmenu ul li a").get(0);
    var openFlag = jQuery(jQuery("#drillmenu ul li")[0]).children(".drillmenu").length;
    //alert(openFlag);
    var hphf = jQuery(first).attr("href");
    if ((hphf != undefined && hphf != null && hphf != "" && hphf.indexOf("Homepage.jsp") != -1) || openFlag == 0) {
        if (first != undefined && first != null && first != "") {
            navMoveFstIfrmClk(first);
            jQuery("#divFloatLeftmenu").show();
            //jQuery("#divFloatLeftmenu").hide();
            if (isOpenFirstMenu != false) {
                jQuery("#mainFrame").attr("src", jQuery(first).attr("href"));
            }
        } else {
            jQuery("#divFloatLeftmenu").hide();
        }
    } else {
        //隐藏导航
        jQuery("#divFloatLeftmenu").hide();
    }
}

function lMNavEventRebind(fnavUrlName, isPortal) {
    //取消事件绑定
    jQuery(".drillmenu ul li a").unbind("click");
    //重新绑定事件
    jQuery(".drillmenu ul li a").bind("click", function () {
        currMObj = this;
    });

    jQuery("#drillmenu").unbind();
    jQuery("#drillcrumb").unbind();

    var myLftMenu = new drilldownmenu({
        menuid:'drillmenu',
        menuheight:'auto',
        breadcrumbid:'drillcrumb',
        persist:{enable:false, overrideselectedul:false},
        homeDir:fnavUrlName,
        speed:0
    });
    jQuery(".arrowclass").css("position", "").css("position", "absolute");
}

/**
 * 移动导航位置
 */
function navMoveIfrmClk(_this) {
    jQuery("#divFloatLeftmenu").each(function () {
        jQuery.dequeue(this, "fx");
    }).animate({
                top:jQuery(_this).offset().top - jQuery("#leftMenu").offset().top + jQuery("#leftMenu").scrollTop(),
                left:jQuery(_this).offset().left - jQuery("#leftMenu").offset().left
            }, 0, 'backout');

    //var abg =  _this.style.backgroundImage;
    var abg = jQuery(_this).attr("_bgPosition");
    var htmText = jQuery(_this).find(".leftMenuItemCenter").text();
    ;
    var htmImg = jQuery(jQuery(_this)[0]).html().substring(0, jQuery(jQuery(_this)[0]).html().toUpperCase().indexOf("<DIV"));
    jQuery(".leftMenuItemNavLeft").css("background-position", abg);
    jQuery(".leftMenuItemNavRight").css("background-position", abg);
    jQuery(".leftMenuItemNavCenter").css("background-position", abg).html(htmText);
    jQuery("#divFloatLeftmenu .arrowclass").remove();
    jQuery(htmImg).insertBefore(".leftMenuItemNavCenter");

    //jQuery("#divFloatLeftmenuContext").html(htmText);
    //jQuery("#divFloatLeftmenu").html(jQuery("#divFloatLeftmenu").html().substring(0, jQuery("#divFloatLeftmenu").html().lastIndexOf("</DIV>") + 6) + htmText);
    jQuery("#divFloatLeftmenu").click(function () {
        //alert(jQuery(_this).attr("href"));
        //window.open(jQuery(_this).attr("href"),jQuery(_this).attr("target"));
    });
}

function syncLMHeight() {
    //同步菜单高度
    jQuery("#drillmenu").height(jQuery("#drillmenu ul").height());
    if (jQuery("#drillmenu ul").height() < LEFT_MENU_MAX_HEIGHT) {
        jQuery("#leftMenu").height(jQuery("#drillmenu").height());
        // jQuery("#leftMenu").parent().height(jQuery("#leftMenu").height());
        setMainElementHeight(jQuery("#drillmenu").height());
        //jQuery(".navclass").hide();
    } else {
        jQuery("#leftMenu").height(LEFT_MENU_MAX_HEIGHT);
        //jQuery("#leftMenu").parent().height(LEFT_MENU_MAX_HEIGHT);
        //jQuery(".navclass").show();
        setMainElementHeight(LEFT_MENU_MAX_HEIGHT);
    }
}




/**
 * 移动第一个菜单的导航位置
 */
function navMoveFstIfrmClk(_this) {
    jQuery("#divFloatLeftmenu").each(function () {
        jQuery.dequeue(this, "fx");
    }).animate({
                top:jQuery(_this).offset().top - jQuery("#leftMenu").offset().top + jQuery("#leftMenu").scrollTop(),
                left:jQuery(_this).offset().left - jQuery("#leftMenu").offset().left
            }, 0, 'backout');

    //var abg =  _this.style.backgroundImage;
    var abg = jQuery(_this).attr("_bgPosition");
    var htmText = jQuery(_this).find(".leftMenuItemCenter").text();
    //取得菜单项的多级标志（箭头图片）
    var htmImg = jQuery(jQuery(_this)[0]).html().substring(0, jQuery(jQuery(_this)[0]).html().toUpperCase().indexOf("<DIV"));
    jQuery(".leftMenuItemNavLeft").css("background-position", abg);
    jQuery(".leftMenuItemNavRight").css("background-position", abg);
    jQuery(".leftMenuItemNavCenter").css("background-position", abg).html(htmText);
    jQuery("#divFloatLeftmenu .arrowclass").remove();
    jQuery(htmImg).insertBefore(".leftMenuItemNavCenter");

    //jQuery("#divFloatLeftmenuContext").html(htmImg + htmText);
    //jQuery("#divFloatLeftmenu").html(jQuery("#divFloatLeftmenu").html().substring(0, jQuery("#divFloatLeftmenu").html().lastIndexOf("</DIV>") + 6) + htmText);
    jQuery("#divFloatLeftmenu").click(function () {
        //alert(jQuery(_this).attr("href"));
        //window.open(jQuery(_this).attr("href"),jQuery(_this).attr("target"));
    });
}


function getEvent() {
    if (window.ActiveXObject) {
        return window.event;// 如果是ie
    }
    func = getEvent.caller;
    while (func != null) {
        var arg0 = func.arguments[0];
        if (arg0) {
            if ((arg0.constructor == Event || arg0.constructor == MouseEvent)
                    || (typeof (arg0) == "object" && arg0.preventDefault && arg0.stopPropagation)) {
                return arg0;
            }
        }
        func = func.caller;
    }
    return null;
}
</script>


</div>
<div id="leftmenu-bottom-bottom">
    <div class="leftMenuBottomLeft"></div>
    <div id="leftMenuBottomCenter"></div>
    <div class="leftMenuBottomRight"></div>
</div>
</td>
</tr>
</table>
</div>
</div>

</td>
<td width="*">
    <TABLE id="shadowtable" width="100%" height="100%" cellpadding="0px" cellspacing="0px">
        <TR>
            <TD id="shadowcorner"></TD>
        </TR>
        <TR>
            <TD id="shadowleft" align="center">
                <!-- 左侧菜单隐藏用block -->
                <TABLE width="100%" height="100%" cellpadding="0px" cellspacing="0px">
                    <TR>
                        <TD align="center" height="100%">
                            <table border="0" width="100%" width="0" align="center" cellpadding="0px"
                                   cellspacing="0px">
                                <tr>
                                    <td style="position:relative;" height="100%">
                                        <div id="leftBlockHiddenContr">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </TD>
                    </TR>
                </TABLE>
            </TD>

        </TR>
    </TABLE>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="shadowtop">
    <TABLE width="100%" height="100%" cellpadding="0px" cellspacing="0px">
        <TR>
            <TD align="center" width="100%">
                <table border="0" width="100%" height="5px" align="center" cellpadding="0px" cellspacing="0px">
                    <tr>
                        <td align="center" width="100%" style="position:relative;">
                            <div id="topBlockHiddenContr">
                            </div>
                        </td>
                    </tr>
                </table>
            </TD>
        </TR>
    </TABLE>
</div>

<script languange="javascript">
//左侧区域宽度（根据分辨率自动解析）
var LeftBlock_Max_Width = 180;
/**
 * 初始化左侧区域各个块得大小
 * 自动执行
 */
function leftBlockSizeInit() {
    var clientScreenHeight = window.screen.height;
    var clientScreenWidth = window.screen.width;
    if (clientScreenWidth < 1280) {
        clientScreenWidth = 1280;
    }
    var tpLeftMenuMaxHeight = Math.round(clientScreenHeight / 2.8);
    var tpLeftMenuMaxWidth = Math.round(clientScreenWidth / 8); //8
    if (tpLeftMenuMaxWidth < 180) tpLeftMenuMaxWidth = 180;
    setLeftBlockSize(LeftBlock_Max_Width, tpLeftMenuMaxHeight);
    leftMenuItemWidth = tpLeftMenuMaxWidth;
}

/**
 * 设置左侧区域各个块得大小
 */
function setLeftBlockSize(tpLeftMenuMaxWidth, tpLeftMenuMaxHeight) {
    //jQuery("#leftBlockTd").css("width", tpLeftMenuMaxWidth + 3);
    jQuery("#leftBlockTd").css("width", tpLeftMenuMaxWidth + 25);
    jQuery("#leftmenucontainer").css("width", tpLeftMenuMaxWidth + 25);
    jQuery("#leftBlockTopBgCenter").css("width", tpLeftMenuMaxWidth + 14);
    jQuery("#leftBlockTopBgCenter").css("background", "url('/images/face/win7-s/leftBlockTopBgCenter.jpg')");

    //td 126px
    jQuery("#leftmenu-top").css("width", tpLeftMenuMaxWidth + 3);
    jQuery("#leftmenu-top").css("height", 86);

    jQuery("#leftBlockHrmInfoCenter").css("width", tpLeftMenuMaxWidth - 63);
    jQuery("#leftBlockHrmInfoCenter").css("background", "url('/images/face/win7-s/leftBlockHrmInfoBgCenter.png')");
    jQuery("#leftBlockHrmInfoCenter").css("background-repeat", "repeat-x");

    //jQuery("#leftmenu-bottom").css("height", tpLeftMenuMaxHeight + 124 - 61);
    setMainElementHeight(27);
    if ($.browser.msie) {
        jQuery("#leftmenu-bottom").css("width", tpLeftMenuMaxWidth + 3);
    } else {
        jQuery("#leftmenu-bottom").css("width", tpLeftMenuMaxWidth + 1);
    }
    jQuery("#leftBlock_HrmDiv").css("height", 86);
    jQuery("#leftmenu-bottom-bottom").css("width", tpLeftMenuMaxWidth + 3);

    jQuery("#leftMenuBottomCenter").css("width", tpLeftMenuMaxWidth - 8);


    setHrmInfoDep(tpLeftMenuMaxWidth - 62);
}
/**
 * 自动调用
 */
leftBlockSizeInit();


function setMainElementHeight(height) {

    jQuery("#leftmenu-bottom").css("height", height + jQuery("#drillcrumb").height() + 71);

}

/**
 * 显示或者隐藏左侧区域
 */
function leftBlockContractionOrExpand(_this) {
    if (jQuery("#leftmenucontainer").css("display") == 'none') {
        jQuery("#leftmenucontainer").show();
        jQuery("#leftBlockTd").css("width", LeftBlock_Max_Width + 25);

        if (tmpLyTopmenu != lyClickTopmenuStatictics) {
            dymlftenu(recentlyClickTopMenuObj, false);
        }

        jQuery("#leftBlockHiddenContr").css("background", "");

        leftBlockHiddenContrFlag = 0;

        oldleftwidth = 220;
        oldrightwidth = contentPanel.getSize().width;
        accordion.setWidth(oldleftwidth);
        contentPanel.setWidth(oldrightwidth - oldleftwidth);
        contentPanel.setPosition(contentPanel.getPosition()[0] + oldleftwidth);
    } else {
        jQuery("#leftmenucontainer").hide();
        jQuery("#leftBlockTd").css("width", 0);

        if (recentlyClickTopMenuObj != null && recentlyClickTopMenuObj != undefined) {
            recentlyClickTopMenuObjId = jQuery(recentlyClickTopMenuObj).attr("levelid");
            if (recentlyClickTopMenuObjId == "" || recentlyClickTopMenuObjId == undefined || recentlyClickTopMenuObjId == null) {
                recentlyClickTopMenuObjId = "-9999";
            }
        }

        tmpLyTopmenu = lyClickTopmenuStatictics;
        jQuery("#leftBlockHiddenContr").css("background", "url(/images/face/win7-s/leftBlockExpand.png) no-repeat");
        leftBlockHiddenContrFlag = -1;

        oldleftwidth = 220;
        oldrightwidth = contentPanel.getSize().width;
        accordion.setWidth(0);
        contentPanel.setWidth(oldrightwidth + oldleftwidth);
        contentPanel.setPosition(contentPanel.getPosition()[0] - oldleftwidth);


    }
}

/**
 * 显示或者隐藏顶部区域
 */
function topBlockContractionOrExpand(_this) {
    if (jQuery("#mainTopBlockTr").css("display") == 'none') {
        jQuery("#mainTopBlockTr").show();
        jQuery("#topBlockHiddenContr").css("background", "");
        jQuery("#logo").show();
        topBlockHiddenContrFlag = 0;

        $('.shadowtop').css('top', 70);
        $('#shadowleft').height($('#leftmenucontainer').height() - $('#shadowcorner').height() + 3);
        oldtopheight = 70;
        oldcontentheight = contentPanel.getSize().height;
        toppanel.show();
        accordion.setHeight(oldcontentheight - oldtopheight);
        contentPanel.setHeight(oldcontentheight - oldtopheight);
        accordion.setPosition(0, 70);
        contentPanel.setPosition(contentPanel.getPosition()[0], 70);
    } else {
        jQuery("#mainTopBlockTr").hide();
        jQuery("#logo").hide();
        jQuery("#topBlockHiddenContr").css("background", "url(/images/face/win7-s/topBlockExpand.png) no-repeat");

        topBlockHiddenContrFlag = -1;

        $('.shadowtop').css('top', 0);
        oldtopheight = 70;
        oldcontentheight = contentPanel.getSize().height;
        toppanel.hide();
        accordion.setHeight(oldcontentheight + oldtopheight);
        contentPanel.setHeight(oldcontentheight + oldtopheight);
        accordion.setPosition(0, 0);
        contentPanel.setPosition(contentPanel.getPosition()[0], 0);
        $('#shadowleft').height($('.leftmenu').height() - $('#shadowcorner').height());
    }
}
/**
 * 设置左侧区域内hrmInfo的大小
 */
function setHrmInfoDep(tpLeftMenuMaxWidth) {
    jQuery("#leftBlockHrmDep").css("width", tpLeftMenuMaxWidth);
}

jQuery("#leftBlockHiddenContr").css("background", "");
jQuery("#topBlockHiddenContr").css("background", "");

/**
 * 最近一次点击左侧菜单的id
 * 用于当左侧菜单隐藏，并且点击了顶部菜单的情况下，更新用。
 */
var recentlyClickTopMenuObjId = "";
var tmpLyTopmenu = -1;

/**
 * 记录左侧区域的状态：0：隐藏   -1：正常显示
 * 作用：是否持续显示隐藏/显示左侧的按钮
 */
var leftBlockHiddenContrFlag = 0;
var topBlockHiddenContrFlag = 0;
jQuery(document).ready(function () {

    //左侧区域隐藏按钮点击时触发
    jQuery("#leftBlockHiddenContr").bind("click", function () {
        leftBlockContractionOrExpand();
    });

    //顶部区域隐藏按钮点击时触发
    jQuery("#topBlockHiddenContr").bind("click", function () {
        topBlockContractionOrExpand();
    });

    //左侧区域隐藏按钮
    jQuery("#leftBlockHiddenContr").hover(function () {
        if (leftBlockHiddenContrFlag != -1) {
            jQuery(this).css("background", "url(/images/face/win7-s/leftBlockContraction.png) no-repeat");
        }
    }, function () {
        if (leftBlockHiddenContrFlag != -1) {
            jQuery(this).css("background", "none");
        }
    });

    //顶部区域隐藏按钮
    jQuery("#topBlockHiddenContr").hover(function () {
        if (topBlockHiddenContrFlag != -1) {
            jQuery(this).css("background", "url(/images/face/win7-s/topBlockContraction.png) no-repeat");

        }
    }, function () {
        if (topBlockHiddenContrFlag != -1) {
            jQuery(this).css("background", "none");
        }
    });
});

</script>

<script type="text/javascript">

    $(document).ready(function () {
        //$('.shadowtop').css('left',LeftBlock_Max_Width+20);
        $('.shadowtop').width(window.screen.width - $('.shadowtop').offset().left - 5);
        $('#leftmenucontainer').height(window.screen.height - $('#topmenu').height() - 150);
        $('#shadowleft').height($('#leftmenucontainer').height() - $('#shadowcorner').height() + 3);
    });

</script>
